/*
 * @description: 
 * @Author: Islands
 * @Date: 2024-06-22 22:43:57
 * @LastEditTime: 2024-06-24 18:06:35
 */
import { PropType } from "vue";

const sizeType = ['large', 'default', 'small'] as const;
type SizeType = (typeof sizeType)[number];


export const props = {
    size: {
        type: String as PropType<SizeType>,
        validator: (v: any) => sizeType.includes(v),
        default: 'default',
    },
    selectIds: {
        type: Array<any>,
        default: []
    },
    deleteRow: {
        type: Object as PropType<Object>,
        default: {}
    },
    refreshChange: { type: Function as PropType<(() => any) | (() => any)>, default: null },
};


export interface Emits {
    (e: 'click', val: number): () => void;
    (e: 'deleteBatchChange', ids: any): () => void;
    (e: 'confirmEvent', id: any): () => void;
}
